<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="0js/vue.js"></script>
</head>
<body>

<div id="App">
    <h1>hello, {{name}}</h1>
</div>

<script type="text/javascript">
    // 取消提示
    Vue.config.productionTip = false

    // el和data两种写法
    const vm = new Vue({
        // el:"#root",
        /*data: {
            name: "vue"
        },*/
        data() {
            console.log(this)
            return {
                name: "vue"
            }
        }
    });
    setTimeout(() => {
        vm.$mount("#App")
    }, 1000)

    console.log(vm)
</script>
</body>
</html>